<?php // começa no topo ------------ ----------------- ----- ------?>
</div><?php // começa no topo ------------ ----------------- ----- ------?>
<?php // começa no topo ------------ ----------------- ----- ------?>


<div class="rodape corpo">
      
<div class="quadro-roda1">
            
    <?php
    $cont = 1;
    foreach ($registro_pagina as $pag){
    ?>
            <?php
            if($pag->pag_id_fk == '0' && $pag->pag_id == '1' && $cont == 1){
            ?>
                <div class="titulo-roda"><?php echo $pag->pag_nome ?></div>
            <?php
            $cont == 100;
            }
            ?> 
    <?php
    }
    ?>
              
              
              
    <?php
    foreach ($registro_pagina_fk1 as $pag){
    ?> 
            <div class="itens-roda"><a href="#"><?php echo $pag->pag_nome ?></a></div>
    <?php
    }
    ?>
            
</div>
      

      
 
<div class="quadro-roda2">
    <?php
    $cont = 1;
    foreach ($registro_pagina as $pag){
    ?>  
            <?php
            if($pag->pag_id_fk == '0' && $pag->pag_id == '2' && $cont == 1){
            ?>
                <div class="titulo-roda"><?php echo $pag->pag_nome ?></div>
            <?php
            $cont = 100;
            }
            ?>  
    <?php
    }
    ?>
              
    <?php
    foreach ($registro_pagina_fk2 as $pag){
    ?> 
            <div class="itens-roda"><a href="#"><?php echo $pag->pag_nome ?></a></div>
    <?php
    }
    ?>
    </div>
      

      
      
    
    
    
      
<div class="quadro-roda3">
        
    <?php
    $cont = 1;
    foreach ($registro_pagina as $pag){
    ?>   
            <?php
            if($pag->pag_id_fk == '0' && $pag->pag_id == '3' && $cont == 1){
            ?>
                <div class="titulo-roda"><?php echo $pag->pag_nome ?></div>
            <?php
            $cont = 100;
            }
            ?> 
    <?php
    }
    ?>
              
    <?php
    foreach ($registro_pagina_fk3 as $pag){
    ?> 
            <div class="itens-roda"><a href="#"><?php echo $pag->pag_nome ?></a></div>
    <?php
    }
    ?>
    </div>
      

    
      
<div class="quadro-roda3">
        
    <?php
    $cont = 1;
    foreach ($registro_pagina as $pag){
    ?>  
            <?php
            if($pag->pag_id_fk == '0' && $pag->pag_id == '4' && $cont = 1){
            ?>
                <div class="titulo-roda"><?php echo $pag->pag_nome ?></div>
            <?php
            $cont = 100;
            }
            ?> 
    <?php
    }
    ?>             
              
    <?php
    foreach ($registro_pagina_fk4 as $pag){
    ?> 
            <div class="itens-roda"><a href="#"><?php echo $pag->pag_nome ?></a></div>
    <?php
    }
    ?>
            
</div>
      

    
    
    

      
<div class="quadro-roda4">
    <?php
    foreach ($registro_pagina as $pag){
    ?>  
            <?php
            if($pag->pag_id_fk == '0' && $pag->pag_id == '5'){
            ?>
                <div class="titulo-roda"><?php echo $pag->pag_nome ?></div>
            <?php
            }
            ?> 
    <?php
    }
    ?>               
                
    <?php
    foreach ($registro_pagina_fk5 as $pag){
    ?> 
            <a href="#"><img src="<?php echo base_url('assets/img_pagina/'.$pag->pag_img)?>" width="74" height="128" /></a>
    <?php
    }
    ?>      
            
</div>

    
    
    

      
<div class="quadro-roda4">
    <?php
    foreach ($registro_pagina as $pag){
    ?>  
            <?php
            if($pag->pag_id_fk == '0' && $pag->pag_id == '6'){
            ?>
                <div class="titulo-roda"><?php echo $pag->pag_nome ?></div>
            <?php
            }
            ?>  
    <?php
    }
    ?>
    <?php
    foreach ($registro_pagina_fk6 as $pag){

        $link1 = $pag->pag_caminho1;
        $link2 = $pag->pag_caminho2;
        $link3 = $pag->pag_caminho3;
    }
    ?> 
            <a href="<?php echo $link1; ?>"><img src="<?php echo base_url('assets/site/imagens/fb.png')?>" width="37" height="36" /></a>
            <a href="<?php echo $link2; ?>"><img src="<?php echo base_url('assets/site/imagens/tt.png')?>" width="37" height="39" /></a>
            <a href="<?php echo $link3; ?>"><img src="<?php echo base_url('assets/site/imagens/seguro.png')?>" width="104" height="34" /></a>
    </div>
      
      

      
  <!--rodape-->
  </div>
<!--corpo-->

</div>
</body>
</html>
